import {createBrowserRouter} from 'react-router-dom'
import { lazy } from 'react'

import Error from '../pages/404/Index'
import City from '../pages/city/Index'
import Message from '../pages/message/Index'

let routes=createBrowserRouter([
    {
        path:'/',
        element:<City></City>
    },
    {
        path:'/message',
        element:<Message></Message>
    },

    {
        path:'*',
        element:<Error></Error>
    }
])

export default routes